<template>
  <div id="basic-layout">
    <a-layout>
      <a-layout-header class="header">
        <global-header />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://www.baidu.com" target="_blank"> 百度一下 </a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>
<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
// import { getCurrentUser } from "@/api/user";
//
// getCurrentUser().then((res) => {
//   console.log(res);
// });
</script>

<style scoped>
#basic-layout .footer {
  background: #efefef;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 0;
}

#basic-layout .content {
  padding: 24px;
  margin-bottom: 5px;
  background: linear-gradient(to right, #fefefe, #fff);
}

#basic-layout .header {
  background: white;
  margin-bottom: 5px;
  color: unset;
  padding-inline: 20px;
}
</style>
